import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'heic_converter_method_channel.dart';

abstract class HeicConverterPlatform extends PlatformInterface {
  /// Constructs a HeicConverterPlatform.
  HeicConverterPlatform() : super(token: _token);

  static final Object _token = Object();

  static HeicConverterPlatform _instance = MethodChannelHeicConverter();

  /// The default instance of [HeicConverterPlatform] to use.
  ///
  /// Defaults to [MethodChannelHeicConverter].
  static HeicConverterPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [HeicConverterPlatform] when
  /// they register themselves.
  static set instance(HeicConverterPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<String?> convertToJpg(String path) {
    throw UnimplementedError('convertToJpg() has not been implemented.');
  }

  Future<String?> convertToPng(String path) {
    throw UnimplementedError('convertToPng() has not been implemented.');
  }

  Future<bool?> isBluetoothAudioOutput() {
    throw UnimplementedError(
        'isBluetoothAudioOutput() has not been implemented.');
  }
}
